<?php

namespace app\load\model\oa;

use think\Collection;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\Model;

/**
 * 采购商品表
 */
class PurchaseProductModel extends Model
{

    protected $name = 'purchase_product';

    /**
     * 列表
     * @param array $where
     * @return array|Collection
     * @throws DataNotFoundException
     * @throws DbException
     * @throws ModelNotFoundException
     */
    public function list(array $where = [])
    {
        return $this->db()->where($where)->select();
    }

}